#ifndef DEF_CUBE
#define DEF_CUBE

#ifdef WIN32
#include <GL/glew.h>
#else
#define GL3_PROTOTYPES 1
#include <GL3/gl3.h>
#endif


#include "../Shaders/Shader.h"
#include "../Maths/Matrice.h"
#include "../Maths/Vector.h"

class Cube
{
public :
	Cube();
	Cube(float* position, float size);
	~Cube();

	void init();
	void draw(Matrice &modelview, Matrice &projection);
	void SetScale(Vector3 scale) { _scale = scale; };
	void SetEulerAngle(Vector3 eulerAngle) {_eulerAngle = eulerAngle;};

private :
	Shader m_shaderColor;
	float *m_vertex;
	unsigned int *m_index;

	float *m_red;
	float *m_green;
	float *m_blue;
	float *m_color;

	float _size;
	float* _position;
	Vector3 _scale;
	Vector3 _eulerAngle;

};
#endif